FROM node:8.0.0
RUN echo "Asia/Shanghai" > /etc/timezone;dpkg-reconfigure -f noninteractive tzdata
MAINTAINER cookie
ADD . /app/
WORKDIR /app
RUN npm config set registry https://registry.npm.taobao.org
RUN npm i -g pm2
RUN npm i
RUN npm run compile
EXPOSE 8360
CMD ["pm2", "start", "/app/production.js", "--no-daemon"]